import {Card, Row, Col, List, Space, Typography, Tag} from "antd";
import Base from "@/pages/Province/SubjectDetail/components/Base";
import {CaretDownFilled, CaretUpFilled, FileWordOutlined} from "@ant-design/icons";
import {useEffect, useState} from "react";
import {history} from "@@/core/history";
import {Detail05Earn, Detail05Intelligent} from "@/services/Province/Dashboard";

export default (props) => {

// 智库建设
  const [earn, setearn] = useState(0)

  const urlArr = history.location.pathname.split('/')
  const school = urlArr[urlArr.length - 1]
  const subject = urlArr[urlArr.length - 2]
  const schoolSubject = school + '-' + subject
  const [rankData, setrankData] = useState([])
  const [reload, setReload] = useState(false)
  useEffect(() => {
    Detail05Earn({subject: schoolSubject}).then(res => {
      if (res.status === 0) {
        setearn(res.data)
      }
    })
  }, [reload])
  return <Base props={props}>
    <Row gutter={[24, 24]}>
      <Col span={24}><Card title="成果转化">
        <p className="good-content-size">2021年1月至今，学科师生向企业或其他机构，通过成果转移转化，专利、软件著 作权转让许可等形式获得的到校资金总额为：<Typography.Text strong>{earn}万元</Typography.Text></p></Card></Col>
   </Row>
  </Base>
}
